import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'Index',
    meta: {
      title: '夏日清凉福利',
    },
    component: () =>
      import(/* webpackChunkName: "page-main" */ '@/pages/Index.vue'),
  },
  {
    path: '/giftDetail',
    name: 'giftDetail',
    meta: {
      title: '夏日清凉福利',
    },
    component: () =>
      import(/* webpackChunkName: "page-main" */ '@/pages/giftDetail.vue'),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
